 /* 
 * File:   AgentCollisionEvent.cpp
 * Author: josep
 * 
 * Created on 26 / desembre / 2010, 00:11
 */

#include "cAgentCollisionEvent.h"

cAgentCollisionEvent::cAgentCollisionEvent(int collisonType, const int* surfaceType, 
                                    c2DArea *area, bool isDead)
            :cPhysicalReaction(cPhysicalReaction::AGENT_COLLISION, collisonType){
    this->surfaceType=surfaceType;
    this->area = area;
    Dead=isDead;
}
cAgentCollisionEvent::cAgentCollisionEvent(cAgentCollisionEvent &orig):cPhysicalReaction(orig) {
    surfaceType=orig.surfaceType;
    area = orig.area;
    Dead=orig.Dead;
}

cAgentCollisionEvent::~cAgentCollisionEvent() {
}

const int* cAgentCollisionEvent::GetSurfaceType() {
    return surfaceType;
}
c2DArea * cAgentCollisionEvent::GetArea(){
    return area;
}
bool cAgentCollisionEvent::IsDead() const {
    return Dead;
}

